package com.hsnn.medstgmini.pro.project.model;

import java.sql.Blob;
import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="contract_model")
public class ContractModel {
	private String contractModelId;//合同模板id
	private String contractModelCode;//合同模板编号
	private String contractModelName;//合同模板名称
	private String version;//版本号
	private Blob blobContent;//具体内容
	private String content;
	private Integer status;//状体
	private Timestamp updDatetime;//更新时间
	private String updUser;//更新人
	private String pfdFilePath;
	private String swfFilePath;

	
	@Id
	@Column(name="contract_model_id")
	public String getContractModelId() {
		return contractModelId;
	}
	public void setContractModelId(String contractModelId) {
		this.contractModelId = contractModelId;
	}
	
	@Column(name="contract_model_code")
	public String getContractModelCode() {
		return contractModelCode;
	}
	public void setContractModelCode(String contractModelCode) {
		this.contractModelCode = contractModelCode;
	}
	
	@Column(name="contract_model_name")
	public String getContractModelName() {
		return contractModelName;
	}
	public void setContractModelName(String contractModelName) {
		this.contractModelName = contractModelName;
	}
	
	@Column(name="version")
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	
	@Column(name="content")
	public Blob getBlobContent() {
		return blobContent;
	}
	public void setBlobContent(Blob blobContent) {
		this.blobContent = blobContent;
	}
	
	@Transient
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	@Column(name="status")
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	@Column(name="upd_datetime")
	public Timestamp getUpdDatetime() {
		return updDatetime;
	}
	public void setUpdDatetime(Timestamp updDatetime) {
		this.updDatetime = updDatetime;
	}
	
	@Column(name="upd_user")
	public String getUpdUser() {
		return updUser;
	}
	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}
	@Column(name="pdf_file_path")
	public String getPfdFilePath() {
		return pfdFilePath;
	}
	public void setPfdFilePath(String pfdFilePath) {
		this.pfdFilePath = pfdFilePath;
	}
	
	@Column(name="swf_file_path")
	public String getSwfFilePath() {
		return swfFilePath;
	}
	public void setSwfFilePath(String swfFilePath) {
		this.swfFilePath = swfFilePath;
	}
}
